import random

# 初始化一个字典来记录每个骰子点数出现的次数
dice_counts = {1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0}

# 投掷骰子100次
for _ in range(100000):
    # 随机生成一个1到6之间的整数，模拟骰子点数
    dice_roll = random.randint(1, 6)
    # 更新字典中对应点数的计数
    dice_counts[dice_roll] += 1

# 打印每个点数出现的次数
for number in sorted(dice_counts.keys()):
    print(f"Number {number} appeared {dice_counts[number]} times.")